Logic Gates are basic building blocks of digital circuits.
They take binary input (0 or 1) and give binary output (0 or 1).
- Computers
- Calculators
- Processors
- Microcontrollers
- Digital electronics
Logic Gates are basic building blocks of digital circuits.
They take binary input (0 or 1) and give binary output (0 or 1).
There are 7 main logic gates:
| A | B | Output |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
| A | B | Output |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| Input | Output |
|---|---|
| 0 | 1 |
| 1 | 0 |
These gates can create all other gates.
| A | B | Out |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
| A | B | Out |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
| A | B | Out |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
| A | B | Out |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
| Gate | Output is 1 when... |
|---|---|
| AND | Both 1 |
| OR | At least one 1 |
| NOT | Input is 0 |
| NAND | NOT(AND) |
| NOR | NOT(OR) |
| XOR | Inputs different |
| XNOR | Inputs same |
✓ AND gate output is 1 when? → Both inputs are 1 ✓ Which gate is called inverter? → NOT gate ✓ XOR gate output is 1 when? → Inputs are different ✓ Which gates are universal gates? → NAND and NOR ✓ Output of NAND when A=1, B=1? → 0 ✓ Full form of XOR? → Exclusive OR ✓ XNOR gives 1 when? → Inputs are same